class AddPostsPosition < ActiveRecord::Migration
  def self.up
  	add_column :posts, :position, :integer, :default => 1
  	add_index :posts, :position
  end

  def self.down
  	remove_column :posts, :position
  end
end
